﻿#include "stdafx.h"
#include "SurfaceMap.h"
#include "customControl/DefectMap.h"

struct SurfaceMap::Internal
{
	Internal(SurfaceMap* ptr)
	{
		q = ptr;
	}
	void initForm()
	{
		q->setTitle(tr("SURFACE MAP"));
		QVBoxLayout* layoutMain = new QVBoxLayout(q->getMainWnd());
		//瑕疵地图
		defectMap = new DefectMap(q);
		layoutMain->addWidget(defectMap);
	}
	SurfaceMap* q;
	DefectMap* defectMap;
};

SurfaceMap::SurfaceMap(QWidget* parent):
	CAbstractCard(parent),
	p(new Internal(this))
{
	p->initForm();
}

SurfaceMap::~SurfaceMap()
{
	if (p)
	{
		delete p;
		p = nullptr;
	}
}
